<!--
 * @FileDescription 协议解读
 * @Author 杨宇翔
 * @Date 20220610 13:56:47
 * @LastEditors 杨宇翔
 * @LastEditTime 20220610 13:56:47
-->
<template>
    <div class="protocol-page">
        <div class="layout">
            <ProtocolDataList class="datas" />
            <ProtocolDefinition class="definition">
                <ProtocolDefinitionTable />
            </ProtocolDefinition>
            <ProtocolParser class="parser" />
        </div>

        <ProtocolTool />
        <ProtocolDocument />

        <InertialNavigationHeader />
        <InertialNavigationNav />
    </div>
</template>

<script setup lang="ts">
import { onMounted, onUnmounted } from 'vue';
import { ProtocolComponent } from './InertialNavigationComponent';
import InertialNavigationHeader from './InertialNavigationHeader.vue';
import InertialNavigationNav from './InertialNavigationNav.vue';
import ProtocolDataList from './ProtocolDataList.vue';
import ProtocolDefinition from './ProtocolDefinition.vue';
import ProtocolDefinitionTable from './ProtocolDefinitionTable.vue';
import ProtocolDocument from './ProtocolDocument.vue';
import ProtocolParser from './ProtocolParser.vue';
import ProtocolTool from './ProtocolTool.vue';

onMounted(() => ProtocolComponent.Default.Awake());
onUnmounted(() => ProtocolComponent.Default.Destroy());
</script>

<style scoped>
.protocol-page {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    background-color: #252630;
}

.layout {
    position: absolute;
    left: 0;
    top: 6.2rem;
    right: 0;
    bottom: 0;

    display: grid;
    grid-template-columns: 3fr 5fr;
    grid-template-rows: 55fr 46fr;
    gap: 0.1rem;

    grid-template-areas:
        'datas definition'
        'datas parser';
}

.datas {
    grid-area: datas;

    width: 100%;
    height: 100%;

    background-color: #131620;
}

.definition {
    grid-area: definition;

    width: 100%;
    height: 100%;

    background-color: #131620;
}

.parser {
    grid-area: parser;

    width: 100%;
    height: 100%;

    background-color: #131620;
}
</style>